home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
os2
/
lxlt114b.zip
/
install.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-05-06
|
4KB
|
117 lines
/***********************************/
/* lxLite installation script file */
/***********************************/
'@echo off'
'cls'
call rxFuncAdd "SysOS2Ver", "RexxUtil", "SysOS2Ver"
call rxFuncAdd "SysGetKey", "RexxUtil", "SysGetKey"
say "═══════ FRIENDS software presents ═══════"
say "╖ \// An OS/2 executables packer"
say "╜─╜//\ ╖ Lots of features, maximal"
say " //╖ ╖╫─╓─╖ compression, nice interface"
say " // ╜─╜╨╙─╙── R·E·L·E·A·S·E V·E·R·S·I·O·N"
say "═════════════════════════════════════════"
version = SysOS2Ver()
parse value version with hiver "." lover
say "OS/2 version "version" detected"
say "********************************************************************"
say "Please enter the destination directory for program, ex: C:\OS2\APPS:"
pull destDir
if (length(destDir) > 3) & (substr(destDir, length(DestDir), 1) = "\")
then destDir = substr(destDir, 1, length(DestDir) - 1);
do while stream(destDir,"c","query datetime") = ""
QueryCreate = Ask("The directory you specified does not exist. Create it? (Y/N)", "YN")
select
when QueryCreate = "Y"
then 'mkDir 'destDir' 1>nul 2>nul'
otherwise
say "Aborting..."
exit
end
end
QueryUtility = Ask("Install lxLite utility pack? (Y/N)", "YN");
say "********************************************************************"
if ((hiver >= 2) & (lover >= 20)) /* Repack using Lempel-Ziv for OS/2 v>=2.20 */
then do
say "Please wait, repacking lxLite using advanced compression method"
say "Supported by OS/2 2.99 and above (Warp)"
'lxLite /y lxLite.exe'
'del lxLite2x.cfg 1>nul 2>nul'
end
else do
say "Your OS/2 version does not support Lempel-Ziv compression method"
'lxLite /y /x chCase.exe unLock.exe colMng.exe noEA.exe'
'del lxLite.cfg 1>nul 2>nul'
'ren lxLite2x.cfg lxLite.cfg 1>nul 2>nul'
end
say "********************************************************************"
call CopyFile "lxLite.exe"
call CopyFile("lxLite.cfg")
call CopyFile("stub_min.bin")
call CopyFile("stub_vdm.bin")
call CopyFile("lxLite.eng")
call CopyFile("lxLite.rus")
call CopyFile("lxLite.ger")
if (QueryUtility = "Y")
then do
call CopyFile("chCase.exe")
call CopyFile("colMng.exe")
call CopyFile("noEA.exe")
call CopyFile("unLock.exe")
call CopyFile("AndyCols.ini")
call CopyFile("lxUtil.eng")
end
say "********************************************************************"
if Ask("Installation complete. Do you want to read the WHATSNEW file now?", "YN") = "Y"
then do
'cls'
'type whatsnew | more'
Ask("Press Space to continue", " ")
'cls'
end
if Ask("Do you wish to clean the install source directory? (Y/N)", "YN") = "Y"
then do
say "Please wait, cleaning up ..."
'del lxLite??.* 1>nul 2>nul'
'del chCase*.* 1>nul 2>nul'
'del noEA*.* 1>nul 2>nul'
'del colMng*.* 1>nul 2>nul'
'del unLock*.* 1>nul 2>nul'
'del lxUtil*.* 1>nul 2>nul'
'del stub_*.* 1>nul 2>nul'
'del AndyCols.ini 1>nul 2>nul'
'del whatsnew 1>nul 2>nul'
'del file_id.diz 1>nul 2>nul'
'attrib -r %0 >nul'
'del %0 1>nul 2>nul'
end
'cls'
say " Just another fine product from"
say " ╖──────────────╖──╖"
say " ║─╖╖─╖╖╓─╖╖─╖╓─╢╓──"
say " ╜ ╜ ╨╙──╜ ╙╙─╙──╜"
say " s·o·f·t·w·a·r·e"
say "To contact me, write to: Andrew Zabolotny, 2:5030/84.5@FIDOnet"
say " e-mail: bit@freya.etu.ru"
exit
CopyFile:
arg fName
say "Copying "fName" -> "destDir"\"fName
'copy 'fName destDir' 1>nul 2>nul'
return
Ask:
parse arg Question,Reply
rc = charOut(, Question)
do until Pos(Answer, Reply) \= 0
KeyIn = SysGetKey("noecho")
parse upper var KeyIn Answer
end
say Answer
return Answer